<template>
  <div class="home-page">
    <!-- 顶部区域 -->
    <div class="header">
      <div class="logo">
        <div class="logo-icon">Y</div>
        YShell
      </div>
      <div class="header-actions">
        <div class="header-action-btn" title="连接管理">
          <span>🔌</span>
          <span>连接管理</span>
        </div>
        <div class="header-action-btn" title="新建连接">
          <span>+</span>
          <span>新建连接</span>
        </div>
      </div>
    </div>

    <!-- 中间区域 -->
    <div class="content">
      中间区域 (占满剩余空间)
    </div>

    <!-- 底部区域 -->
    <div class="footer">
      底部区域 (50px)
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomePage',
};
</script>

<style scoped>
.home-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.header {
  height: 50px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  background-color: #fff;
  color: #1f2329;
  padding: 0 16px;
  justify-content: space-between;
  border-bottom: 1px solid #e5e6eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);

  .logo {
    font-weight: bold;
    font-size: 18px;
    color: #0052d9;
    display: flex;
    align-items: center;
    gap: 8px;

    .logo-icon {
      width: 24px;
      height: 24px;
      background-color: #0052d9;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: bold;
    }
  }

  .header-actions {
    display: flex;
    gap: 16px;

    .header-action-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
      color: #646a73;
      transition: all 0.2s;
    }

    .header-action-btn:hover {
      background-color: #88FFFFFF;
      color: #0052d9;
    }
  }


}

.content {
  flex: 1;
  background-color: #ffffff;
  overflow: auto;
  padding: 10px;
}

.footer {
  height: 50px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #ccc;
}
</style>
